import http from '@/utils/request';

// 获取用户信息
export const getUserInfo = () => {
	return http.request({
		method: 'GET',
		url: '/mall-user/app/userinfo',
	});
};
// 修改信息
export const editObj = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/mall-user/app/userinfo/update/info',
		data,
	});
};
// 修改手机号
export const editPhone = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/mall-user/app/userinfo/update/phone',
		data,
	});
};
